<?php /* Smarty version 2.6.16, created on 2012-03-19 15:57:23
         compiled from lesson_view.tpl */ ?>

 <?php echo '
 <script language="javascript" src="js/contact_us.js"></script> 
<script language="javascript" type="text/javascript">
var j = jQuery.noConflict();

function getChangeGame(id)
{
	$.post(\'game_details.php\',{\'game_id\':id, \'action\':\'get_content\'}, function(data){
		$(\'#dynamic_controls\').html(data);
	});
}
function CheckFields()
{
  if(document.getElementById(\'student_id\').value==\'\' ) 
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please select a student");
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);
    return false;
   }
   if(document.getElementById(\'lesson_price\').value==\'\' ) 
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter price");
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);
    return false;
   }
   if(document.getElementById(\'lesson_title\').value==\'\' ) 
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter title");
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);
    return false;
   }
  return true;
 }  
 function keyCheck(eventObj, obj)
{
    var keyCode
 
    // Check For Browser Type
    if (document.all){
        keyCode=eventObj.keyCode
    }
    else{
        keyCode=eventObj.which
    }
 
    var str=obj.value
 
    if(keyCode==46){
        if (str.indexOf(".")>0){
            return false
        }
    }
 
    if((keyCode<46 || keyCode >57)   &&   (keyCode >31)){ // Allow only integers and decimal points
        return false
    }
    
    return true
}
</script>
'; ?>


<div class="content">
   		<!-- tab -->
    	<ul class="tabflex">
        	<li><a href="dashboard.php"><span>Dashboard</span></a></li>
            <li><a href="inbox.php"><span>Message</span></a></li>
			<li><a href="profile.php"><span>Profile</span></a></li>
			<?php if ($this->_tpl_vars['is_coach'] == '1'): ?><li><a href="coach_game.php"><span>Coach</span></a></li><?php endif; ?>
			<?php if ($this->_tpl_vars['is_partner'] == '1'): ?><li><a href="training_partner_game.php"><span>Training Partner</span></a></li><?php endif; ?>
			<?php if ($this->_tpl_vars['is_coach'] == '1'): ?><li><a href="add_lesson.php"  class="active"><span>Lessons</span></a></li><?php endif; ?>
			<?php if ($this->_tpl_vars['is_coach'] == '0'): ?><li><a href="my_lesson.php"><span>Lessons</span></a></li><?php endif; ?>
			<li><a href="upload_videos.php"><span>Videos</span></a></li>
			<?php if ($this->_tpl_vars['is_coach'] == '1'): ?><li><a href="my_review.php" ><span>Reviews</span></a></li><?php endif; ?>
			<?php if ($this->_tpl_vars['is_coach'] == '0'): ?><li><a href="my_video_review.php"><span>Reviews</span></a></li><?php endif; ?>
			
          <!--    <li><a href="#"><span>Students</span></a></li>-->
        </ul>
        <!-- tab -->
        <div class="clear"></div>
        <div class="tabular-content"> 
		 <div class="total-message">&nbsp;&nbsp;</div>
		  <div class="tab_sub">
            	<ul>
                	<li><a href="add_lesson.php" >Add Lesson</a></li>
                    <li><a href="my_lesson.php" class="active">My Lesson</a></li>
                </ul>
            </div>   
		 <div class="clear"></div>                     
         <div>

      <div class="register">
	   <div id='FormErrorMsg' style="color:red; text-align:center; padding-bottom:10px;"><?php if ($this->_tpl_vars['ermsg'] != ''): ?> <?php echo $this->_tpl_vars['ermsg'];  endif; ?> </div>
      <form name="lesson" id="lesson" action="" method="post">
	  <input type="hidden" name="lesson_id" value="<?php echo $this->_tpl_vars['Formval']['lesson_id']; ?>
" />
         <fieldset>
            <label>Student :</label>
			<label style="padding-left:10px; text-align:left;"><?php echo $this->_tpl_vars['Formval']['student_name']; ?>
</label>
			<p class="clear"></p>
			<label>Price ($):</label>
			<label style="padding-left:10px; text-align:left;"><?php echo $this->_tpl_vars['Formval']['lesson_price']; ?>
</label>
			<p class="clear"></p>
			</span>
            <p class="clear"></p>
			<label>Title:</label>
            <label style="padding-left:10px; text-align:left;"><?php echo $this->_tpl_vars['Formval']['lesson_title']; ?>
</label>
			<p class="clear"></p>
            <label>Description :</label>
            <label style="padding-left:10px; text-align:left; width:400px;"><?php echo $this->_tpl_vars['Formval']['lesson_description']; ?>
</label>
            <p class="clear"></p>
			<?php if ($this->_tpl_vars['Formval']['lesson_status_id'] == '2'): ?>
			<label>Payment Gateway:</label>
            <label style="padding-left:10px; text-align:left;">PayPal</label>
			<p class="clear"></p>
			<label>Payment Date:</label>
            <label style="padding-left:10px; text-align:left;"><?php echo $this->_tpl_vars['Formval']['lesson_payment_date']; ?>
</label>
			<p class="clear"></p>
			<label>Transaction No.:</label>
            <label style="padding-left:10px; text-align:left;"><?php echo $this->_tpl_vars['Formval']['lesson_payment_transaction_no']; ?>
</label>
			<p class="clear"></p>
			<?php endif; ?>
            <label>&nbsp;</label>
            <input name="" class="cancel" value="Back" type="button" onclick="window.location.href='my_lesson.php'" />
         </fieldset>
      </form>
      </div>
      
     </div>
     </div>
    </div>